﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="download.index" %>

<%@ Register assembly="AspNetPager" namespace="Wuqi.Webdiyer" tagprefix="webdiyer" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
<style type="text/css">
table.gridtable {
	font-family: verdana,arial,sans-serif;
	font-size:11px;
	color:#333333;
	border-width: 1px;
	border-color: #666666;
	border-collapse: collapse;
}
table.gridtable th {
	border-width: 1px;
	padding: 8px;
	border-style: solid;
	border-color: #666666;
	background-color: #dedede;
}
table.gridtable td {
	border-width: 1px;
	padding: 8px;
	border-style: solid;
	border-color: #666666;
	background-color: #ffffff;
}
</style>
<script type="text/javascript" src="My97DatePicker/WdatePicker.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <div  style="width:1000px;margin:0px auto;height:50px;margin-top:60px;">
        开始时间:<asp:TextBox  
            cID="txtstime" runat="server" onClick="WdatePicker()" ID="txtstime" /></asp:TextBox>
&nbsp;结束时间:<asp:TextBox ID="txtetime" runat="server"  onClick="WdatePicker()" ></asp:TextBox>
&nbsp;IP地址:<asp:TextBox ID="txtip" runat="server"></asp:TextBox>
&nbsp;<asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="查询" 
            Width="73px" />
        
    &nbsp;
        <asp:Button ID="Button2" runat="server" onclick="Button2_Click" Text="清除" 
            Width="79px" Visible="False" />
        
    &nbsp;
        <asp:Label ID="Label1" runat="server"></asp:Label>
        
    </div>
        <table style="width:1000px;" class="gridtable"  align="center">
        <asp:Repeater ID="rpdata" runat="server">
        <HeaderTemplate>
            <tr>
                <td>
                 编号
                </td>
                <td>
                IP
                </td>
                  <td>
                归属地
                </td>
                <td>
                下载时间
                </td>
            </tr>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
                <td>
                <%# DataBinder.Eval(Container.DataItem,"id") %>
                </td>
                 <td>
                 <%# DataBinder.Eval(Container.DataItem, "ip")%>
                 </td>
                   <td>
                  <%# DataBinder.Eval(Container.DataItem, "mac")%>
                  </td>
                  <td>
                  <%# DataBinder.Eval(Container.DataItem, "time")%>
                  </td>
               
            </tr>
        </ItemTemplate>
        </asp:Repeater>
    </table>
    </div>
    <br />
    <div style="width:1000px;margin:0px auto;">
    <webdiyer:AspNetPager ID="AspNetPager1" runat="server" Width="100%" 
            NumericButtonCount="6" UrlPaging="true" NumericButtonTextFormatString="[{0}]" 
            CustomInfoHTML="第 <font color='red'><b>%CurrentPageIndex%</b></font> 页 共 %PageCount% 页 显示 %StartRecordIndex%-%EndRecordIndex% 条" ShowCustomInfoSection="left"
FirstPageText="首页" LastPageText="末页" NextPageText="下页" PrevPageText="上页" 
            Font-Names="Arial" BackColor="#ffffff" AlwaysShow="true" ShowInputBox="Always" 
            SubmitButtonText="跳转" SubmitButtonStyle="botton" 
            OnPageChanged="AspNetPager1_PageChanged" PageSize="100" >
              </webdiyer:AspNetPager>
    </div>
    
    </form>
</body>
</html>
